//cat--added second constructor to player

#ifndef _PLAYER_H
#define _PLAYER_H

#include <iostream>
#include <string.h>
#include <vector>
#include "Card.h"
#include "Meld.h"
#include "Group.h"
#include "Run.h"

using std::ostream;
using std::string;
using std::vector;

class Player
{
 protected:
  string type;
  
  

 public:
  bool firstMoveDone;
  bool hasWon;
  string name;
  vector<Card> handBuffer;
  vector<Card> hand;
  Player(string str1);//str1 is the name
  Player(string str1, string playertype);
  ostream & displayTableBuffer(ostream &os,vector<Meld*> &tb2);
  ostream & displayHand(ostream &os);
  ostream & displayHandBuffer(ostream &os);
  virtual ostream & display(ostream &os) const;
  virtual bool move(vector<Meld*> &tb2);
};

#endif
